from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        # 创建一个标签
        return Label(text='Hello, Kivy!', font_size='40sp')

if __name__ == '__main__':
    MyApp().run()